/*
 * @Author: hmhvictory 1400628624@qq.com
 * @Date: 2025-08-01 15:41:25
 * @LastEditors: hmhvictory 1400628624@qq.com
 * @LastEditTime: 2025-08-01 16:11:50
 * @FilePath: \Gitee实训笔记\day15\Homework\test01\Test.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day15.test01;



public class Test {
  public static void main(String[] args) {
    Truck t = new Truck("北汽", "苏U12345", "中型");
    int rent = t.getRent(3);
    System.out.println(t.getBrand() + "\t" +
        t.getPlateNumber() + " 租金为：" + rent);
    // 输出 北汽 苏U12345 租金为：1050
    Automobile b = new Bus("宇通", "苏A11111", 30);
    int busRent = b.getRent(10);
    System.out.println(b.getBrand() + "\t" +
        b.getPlateNumber() + " 租金为：" + busRent);
    // 输出 宇通 苏A11111 租金为：6000
  }
}
